from django.contrib import admin
from .models import Student,Score
# Register your models here.

class Studentadmin(admin.ModelAdmin):
    fieldsets = [
        (None,{'fields':['Name','Code','College','Class','QQ','Tel']}),
        ('Optional',{'fields':['Self','Birthday','Photo']}),
        ('Be Careful',{'fields':['Apply','Admit']}),
    ]
#
# class ScoreInline(admin.TabularInline):
#     model = Score
#     can_delete = False
#     verbose_name_plural = 'ScoresList'

class ScoreAdmin(admin.ModelAdmin):
    # inlines = [Studentadmin]
    fieldsets = [
        (None,{'fields':['Names','Pentest','Outer','Inner','Interest','Want','Sum']})
    ]

admin.site.register(Student,Studentadmin)
admin.site.register(Score,ScoreAdmin)